import java.util.Scanner;
public class Notes
{
    public static void main( String [] args)
    {
        double money;
        double fifty,twenty,ten,five,one,fivejiao,onejiao,fivefen,twofen,onefen;
        
        Scanner scan = new Scanner(System.in);
        
        System.out.print("Enter the money:");
        money = scan.nextDouble();
        fifty =(int) money/(50);
        twenty =(int)( money - fifty*50)/20;
        ten =(int) (money - fifty*50 - twenty*20)/10;
        five = (int) (money - fifty*50 - twenty*20 - ten*10)/5;
        one = (int) (money - fifty*50 - twenty*20 - ten*10 - five*5)/1;
        fivejiao =(int)  (money - fifty*50 - twenty*20 - ten*10 - five*5 - one*1)*10/50;
        onejiao = (int) (money - fifty*50 - twenty*20 - ten*10 - five*5 - one*1 - fivejiao*(0.5))*10/1;
        fivefen = (int) (money - fifty*50 - twenty*20 - ten*10 - five*5 - one*1 - fivejiao*0.5 - onejiao*0.1)*100/5;
        twofen = (int) (money - fifty*50 - twenty*20 - ten*10 - five*5 - one*1 - fivejiao*0.5 - onejiao*0.1 - fivefen*0.05)*100/2;
        onefen = (int) (money - fifty*50 - twenty*20 - ten*10 - five*5 - one*1 - fivejiao*0.5 - onejiao*0.1 - fivefen*0.05 - twofen*0.02)*100/1;
        System.out.println("fifty:"+ fifty );
        System.out.println("twenty:"+ twenty );
        System.out.println("ten:"+ ten );
        System.out.println("five:"+ five );
        System.out.println("one:"+ one );
        System.out.println("fivejiao:"+ fivejiao );
        System.out.println("onejiao:"+ onejiao );
        System.out.println("fivefen:"+ fivefen );
        System.out.println("twofen:"+ twofen );
        System.out.println("onefen:"+ onefen );
     }
}  



